<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
    <script type="text/javascript">
    	window.onload=function(){
    		var btn1=document.getElementById('btn1');
    		var btn2=document.getElementById('btn2');
            
            btn2.onclick=function(){
            	//btn1.value="565456";
            	//btn1['value']='abdlgsdj';
            	//setAttribute 设置
            	//getAttribute 获取
            	//removeAttribute 删除
                btn1.setAttribute('value','1375825527');
                //btn1.removeAttribute('value');

            }

    	}
    </script>
</head>
<body>
	<input type="text" id="btn1" name="" value="123456">
	<input type="button" id="btn2" name="" value="按扭">
</body>
</html>